export interface DepartmentItem {
  id: number
  selfid: number
  dept_name: string
  pid: number
  childs: DepartmentItem[]
}

export interface DepartmentResponse {
  code: string
  msg: string
  data: {
    info_list: Array<{
      selfid: number
      dept_name: string
      // ... 其他部门字段
    }>
  }
}

export interface AddDepartmentParams {
  pid: number
  dept_name: string
  selfid: number
}

export interface UpdateDepartmentParams {
  dept_name: string
  selfid: number
}

export interface DeleteDepartmentParams {
  selfid: number
}

export interface CommonResponse {
  msg: string
  code: string
  data?: any
}
